#ifndef FANFOU_FANFOUPLUGIN_H
#define FANFOU_FANFOUPLUGIN_H

#include "twcore/IPlugin.h"
#include <QList>
namespace Fanfou
{
	class FanfouContext;
	class FanfouPlugin : public TWCore::IPlugin
	{
		public:
			FanfouPlugin();

			void initialize();
			bool getConfigWidget( QList<TWCore::IConfigWidget*>& );

			TWCore::IContext* createNewContext();
			TWCore::IContext* createContext( const QByteArray& info );
			void deleteContext( TWCore::IContext* context );
			void unloadContext( TWCore::IContext* context );
		private:
			QList<TWCore::IContext*>	m_contexts;
	};
}
#endif // FANFOU_FANFOUPLUGIN_H
